package com.apexedu.portal.entity;

import javax.persistence.*;

import java.io.Serializable;

/**
 * 数据源维护
 * Created by ly on 2014/10/8.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "T_DB")
public class TDb implements Serializable {
    private String wid;
    private String code; //名称英文缩写
    private String name; //名称
    private String driver; //驱动
    private String url; //数据库链接
    private String username; //用户名
    private String pwd; //密码
    private String link; //业务系统链接地址
    private String des; //备注
    private String state; //状态 0为禁用 1为启用

    @Id
    @Column(name = "WID")
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "CODE")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "DRIVER")
    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    @Basic
    @Column(name = "URL")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "USERNAME")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Basic
    @Column(name = "PWD")
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Basic
    @Column(name = "LINK")
    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Basic
    @Column(name = "DES")
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Basic
    @Column(name = "STATE")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TDb{" +
                "wid='" + wid + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", driver='" + driver + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", link='" + link + '\'' +
                ", des='" + des + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
